x86emul: simplify {,i}{mul,div} fix
authorJan Beulich <jbeulich@suse.com>
Thu, 8 Dec 2016 11:22:33 +0000 (12:22 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 8 Dec 2016 11:22:33 +0000 (12:22 +0100)
commitf5b9217531dac37451845cd83dfd30e4cc1053b4
treee970134846d299c91ce0b8405493883cb650040b
parent7bb084c23b1ac692b57f15158e2817bee72d5224
x86emul: simplify {,i}{mul,div} fix

Commit 75066cd4ea ("x86emul: fix {,i}mul and {,i}div") can be had with
less code: Simply do the destination register override depending on
DstEax being in effect (the four other ModRM.reg encoded operations of
these two opcodes all use DstMem).

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/x86_emulate/x86_emulate.c